<link href="../addons/jy_jindoufee/custom/templates/mobile/style.css?v=202105251730" rel="stylesheet">
<style type="text/css">
	.icon1 {
		width: .8rem; height: .8rem;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}
.fui-block-group {
    border-radius:0.5rem
}
.fui-block-group .fui-block-child {
    background: #fff;
}
.fui-block-group .fui-block-child .icon {height: auto; padding-top: 0.3rem; text-align: center; font-size: 1.3rem;}
.fui-block-group .fui-block-child .icon i { font-size:1.3rem;}
.fui-block-group .fui-block-child .title {
    height: auto;
    font-size: 0.7rem;
    line-height: 1.4
    text-align: center;
    color: #333;
}
.showcode {position: absolute;z-index:10;top:3rem;right:0;padding:0.15rem 0.3rem;font-size:0.6rem;color:#fff;background-color: rgb(255, 255, 255, 0.3);border-top-left-radius:1rem;border-bottom-left-radius:1rem;}
</style>
<div class="fui-page fui-page-current page-commission-index">
    <div class='fui-content'>
	<div ng-if="pagedata.tips" class="tips tips-yellow" style="margin:0">
			<i class="fa fa-bullhorn"></i> {{pagedata.tips}}
	</div>
	<div class="showcode" href="javascript:;" ng-click="access_json(main.isapp==1?pagedata.pluginset.app_saleurl2:'jy_jindoufee/qrcode/main')">二维码 <i class="icon icon-qrcode" style="color:#fff;font-size: 0.6rem;"></i></div>
	<div style="background: {{main.syscolor||'#05c175'}};padding:1rem 0.5rem;margin-top:0;padding-bottom:1.6rem;">
			<div class="fui-cellone" style="padding:0;align-items:stretch;-webkit-box-align: stretch; -webkit-align-items: stretch;">
				<div class="fui-cellone-label" style="width:auto;">
					<img style="border-radius: 0.2rem;width:2.2rem;height:2.2rem" ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}" />
				</div>
				<div class="fui-cellone-text" style="font-size:0.7rem;color:#fff;padding-left:0.5rem">
					<div class="bold">{{pagedata.member.nickname || pagedata.member.username}} <span style="font-size:0.5rem;margin-top:0.3rem;color:#f2f2f2">({{pagedata.member.level}})</span></div>
					<div ng-if="pagedata.member.nickname" style="font-size:0.55rem">账号:{{pagedata.member.username}}</div>
					<div>
						<span style="font-size:0.6rem;margin-top:0.3rem;color:#f2f2f2" ng-click="tool.clip(main.isapp==1?pagedata.member.fromurl:pagedata.member.snmid)">邀请码：{{pagedata.member.snmid}} <i class="icon icon-copy" style="font-size:0.6rem"></i></span>
					</div>
				</div>
				<div class="fui-cellone-remark noremark" style="font-size:0.7rem;color:#fff;">
					 <div href="javascript:;" ng-click="access_json('core/member.set/')"><i class="icon icon-set" style="border-radius: 1rem;padding:0.2rem 0.3rem;font-size:0.6rem; background-color: rgb(255, 255, 255, 0.3);width:auto;color:#fff">设置</i> </div>
				</div>
			</div>	
			<div class="fui-icon-group noborder  col-3" style="padding-top:0.5rem">
					<div class="fui-icon-col-sm external" style="margin:0">
								<div href="javascript:;" ng-click="access_json('core/member.feecard/')">
									<div class="subtitle" style="font-size:0.7rem;color:#fff">我的余额 <a style="border-radius: 1rem;padding:0.2rem 0.3rem;font-size:0.6rem; background-color: rgb(255, 255, 255, 0.3);;width:auto;color:#fff">提现</a></div>
									<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.member.credit2 || '0.00'}}</div>					
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class="subtitle" style="font-size:0.7rem;color:#fff">我的金豆
									<a ng-if="pagedata.pluginset.dui_num>0 && pagedata.pluginset.is_dui==1" style="border-radius: 1rem;padding:0.2rem 0.3rem;font-size:0.6rem; background-color: rgb(255, 255, 255, 0.3);;width:auto;color:#fff" href="javascript:;" ng-click="pagedata.showzhuan=true">兑换</a>
									</div>
									<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.member.credit3 || '0.00'}}</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div href="javascript:;" ng-click="access_json('jy_jindoufee/orderfee/')">
									<div class="subtitle" style="font-size:0.7rem;color:#fff">分红金豆</div>
									<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.data.doufee || 0}}</div>
								</div>
					</div>
			</div>			
	</div>
	<div style="padding:0.5rem;margin-top:-2.5rem">
		<div class="fui-cell-group radius">
			<div ng-include="sys_html('_notice')" class="radius" style="padding:0;"></div>
			<div class='fui-cell'>
			<div class='fui-cell-icon'><i class='icon jinyunicon icon-caifub'></i></div>
			<div class='fui-cell-label' style='width:auto'>{{pagedata.setting.ggtitle||'我的广告值'}}</div>
			<div class='fui-cell-info' ></div>
			<div class='fui-cell-remark' href="javascript:;" ng-click="access_json('jy_jindoufee/feelog//name=gg')"><span class="text-orange">余额:{{pagedata.member.ggfee}} 个</span></div>
			</div>
			<div class='fui-cell'>
			<div class='fui-cell-icon'><i class='icon jinyunicon icon-caifub'></i></div>
			<div class='fui-cell-label' style='width:auto'>{{pagedata.setting.nltitle||'我的能量值'}}</div>
			<div class='fui-cell-info' ></div>
			<div class='fui-cell-remark' href="javascript:;" ng-click="access_json('jy_jindoufee/feelog//name=nl')"><span class="text-orange">余额:{{pagedata.member.nlfee}} 个</span></div>
			</div>
			<div class='fui-cell'>
			<div class='fui-cell-icon'><i class='icon jinyunicon icon-caifub'></i></div>
			<div class='fui-cell-label' style='width:auto'>待释放签到奖励</div>
			<div class='fui-cell-info'>
				<span class="syscolor" href="javascript:;" ng-click="access_json('core/member.qiandao/')">签到>></span>
			</div>
			<div class='fui-cell-remark' href="javascript:;" ng-click="access_json('jy_jindoufee/orderfee//type=3')"><span class="text-orange">余额:{{pagedata.data.signfee}} 个</span></div>
			</div>
			<a ng-if="pagedata.setting.no_order!=1" class="fui-cell external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url)">
				<div class="fui-cell-text bold">我直推的订单</div>
				<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
			</a>
			<div ng-if="pagedata.setting.no_order!=1" class="fui-icon-group col-3 selecter">
				<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=0')">
					<div class="badge" ng-if="pagedata.statics.status0>0">{{pagedata.statics.status0}}</div>
					<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
					<div class="text">待付款的</div>
				</a>
				<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=1')">
					<div class="badge" ng-if="pagedata.statics.status1>0">{{pagedata.statics.status1}}</div>
					<div class="icon icon-orange radius"><i class="icon icon-daifahuo"></i></div>
					<div class="text">已付款的</div>
				</a>
				<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(pagedata.orderlist_url+'/status=3')">
					<div class="badge" ng-if="pagedata.statics.status3>0">{{pagedata.statics.status3}}</div>
					<div class="icon icon-orange radius"><i class="icon icon-survey1"></i></div>
					<div class="text">已完成的</div>
				</a>
			</div>
		</div>
		<div class="fui-cell-group radius">
			<div class="fui-cell external">
				<div class="fui-cell-text bold">服务与工具</div>
				<div class="fui-cell-remark noremark" style="font-size: 0.65rem;"></div>
			</div>
			<div class="fui-icon-group col-4 selecter">
					<a ng-repeat="item in pagedata.setting.my_days" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(item.action)">
						<div class="icon icon-green radius"><i class="icon {{item.icon}}"></i></div>
						<div class="text">{{item.title}}</div>
					</a>
					<a class="fui-icon-col-sm external" href="javascript:;" ng-click="pagedata.tokefu();">
						<div class="icon icon-green radius"><i class="icon icon-kefu"></i></div>
						<div class="text">联系客服</div>
					</a>
			</div>
		</div>
		<div class="fui-cell-group fui-cell-click" style="background:none">
				<a class="fui-cell external btn-logout" ng-click="post_json('core/member.logout/')">
					<div class="fui-cell-text" style="text-align: center;">退出登录</div>
				</a>
		</div>
    </div>
	<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('_footer')"></div>
<div ng-if="pagedata.pluginset.is_redopen==1" ng-include="sys_html('_red','','','jy_jindoufee')"></div>
</div>
<div ng-if="pagedata.show_xieyi" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" ng-click="pagedata.show_xieyi=false"></i>
			<div class="content-images" style="padding:0.5rem;height:20rem; overflow-y:scroll;">
					<div class="title bold" style="font-size:0.8rem">{{pagedata.xieyi.title||'服务管理规则'}} / <small>Read Ggree</small></div>
					<div class="text" style="padding-top:0.5rem;font-size:0.7rem" ng-bind-html="trust(pagedata.xieyi.content)">
					</div>
			</div>
			<div class="modal-footer">
				<div ng-click="pagedata.show_xieyi=false;pagedata.post.check=1" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.xieyi.is_tan==1 && pagedata.xieyi.cantan" ng-include="sys_html('_xieyitan','','','jy_jindoufee')"></div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
				.fui-cell-group .fui-cell:before {
					height: 0;
					border-bottom: 0 solid #ebebeb;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行【兑换】操作
				</div>
				<div class='fui-cellone'>
					<div class='fui-cellone-label big' style='width:auto;color:#fff;margin-right:0.5rem'>兑换方式</div>
					<div class='fui-cellone-info'>
						<div class="jylabel jylabel-switch-label">
								<span ng-class="{'jylabel-switch':1,'active':pagedata.post.type==1}" ng-click="pagedata.post.type=1;pagedata.upjifen2();">银豆换金豆</span>
								<span ng-class="{'jylabel-switch':1,'active':pagedata.post.type!=1}" ng-click="pagedata.post.type=0;pagedata.upjifen2();">金豆换银豆</span>
						</div>
					</div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="兑换额度" ng-model="pagedata.post.fee" ng-change="pagedata.upjifen2()"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<div class="c" style="color:#fff;font-size:0.55rem;margin-top:-0.3rem">
						1个金豆可以兑换{{pagedata.pluginset.dui_num}}个银豆
				</div>
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'jy_jindoufee/index/zhuan/')">(消耗{{pagedata.post.jifen2 || 0}}个{{pagedata.post.type==1?'银豆':'金豆'}})确认兑换</a>
			</div>
		</div>
	</div>
</div>
<div id="attention" ng-if="pagedata.showqrcode==1">
	<div class="attention-alert" style="width:80%;left:10%">
					<div class="attention-content" style="padding: 1.5rem 0;background:none;height:auto">
						<div class="col-jy-1" style="text-align: center;">
							<img ng-src="{{tomedia(pagedata.kefuqr) || '../core/resource/images/nopic.jpg'}}" alt=""style="width: 100%">
						</div>
						<p >长按指纹识别图中二维码</p>
					</div>
					<i class="icon icon-cuowu" ng-click="pagedata.showqrcode=0" style="font-size:1.5rem;color:#fff;position: absolute;top:105%;left:45%"></i>
	</div>
</div>
<div ng-if="pagedata.upmember.id && pagedata.downs.length>0" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem">
				<div class='fui-cell-title c'>您正在进行“直推赠予操作”操作</div>
				<div class="fui-cell">
					<div class="fui-cell-text bold">
						选择赠予的下级
					</div>
				</div>
				<div class='fui-cell' style="padding-bottom:0">
					<div class="fui-cell-text">
						<select class="selectpicker weui_select" data-live-search="true" style="padding:0.3rem" ng-model="pagedata.post.tomid">
							<option ng-repeat="item in pagedata.downs" ng-select="pagedata.post.tomid==item.id" value="{{item.id}}">{{item.nickname||item.username}}</option>
						</select>
					 </div>
				</div>
				<div class='fui-cell' style="margin-top:0;padding-top:0">
					<div class="fui-cell-text">
					<div class="error c">
						<p style="padding: 0 1.3rem">温馨提示：当直推人数满{{pagedata.pluginset.zeng_num}}后，需要转赠予给你的下级！</p>
					</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<div ng-click="post(pagedata.post,'/index/upmember/');" class="mod-check" style="width: 100%; margin: 0;">确认</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.upjifen2=function(){
	if(scope.pagedata.post.type==1){
		scope.pagedata.post.jifen2=scope.pagedata.post.fee*scope.pagedata.pluginset.dui_num
	}else{
		scope.pagedata.post.jifen2=scope.pagedata.post.fee/scope.pagedata.pluginset.dui_num
	}
	scope.$evalAsync();
}
scope.pagedata.tokefu=function(){
	if(scope.pagedata.shopset.h5appkf==1 && window.config.fromh5wxapp==1 && window.config.container!='ttapp' && window.config.container!='baiduapp'){
		//H5小程序环境下
		var logo=scope.tomedia(scope.pagedata.account.logo);
		var title=scope.pagedata.account.title
		wx.miniProgram.navigateTo({
			url: '/pages/kefu/index?logo='+logo+'&title='+title
		})
	}else{
	if(!scope.pagedata.shopset.kefutype_h5 || scope.pagedata.shopset.kefutype_h5==0){
		scope.access_json(scope.pagedata.shopset.kflink);
	}else if(scope.pagedata.shopset.kefutype_h5==1){
		scope.pagedata.kefuqr=scope.pagedata.shopset.kf_accountimg;
		scope.pagedata.showqrcode=1;
		scope.pagedata.openwxlink(item.linkurl);
	}else if(scope.pagedata.shopset.kefutype_h5==2){
		scope.access_json(scope.pagedata.shopset.appkflink);
	}else if(scope.pagedata.shopset.kefutype_h5==3){
		scope.access_json(scope.pagedata.shopset.workerh5url);
	}else if(scope.pagedata.shopset.kefutype_h5==4){
		scope.pagedata.kefuqr=scope.pagedata.shopset.guwenkfewm;
		scope.pagedata.showqrcode=1
	}
	}
	scope.$evalAsync();
};
</script>